package com.wish233.wiliwilisearch.domain.enu;

import lombok.Getter;

/**
 * @author WHH
 */

@Getter
public enum SearchType {

    VIDEO(1),
    USER(2);

    int searchId;

    SearchType(int searchId) {
    }

    public static SearchType getTypeById(int searchId) {
        if (searchId == 1) {
            return VIDEO;
        } else if (searchId == 2) {
            return USER;
        }
        return null;
    }
}
